<?php
namespace App\Http;

class Constant{
	// TFEX, Table Fields Explain
	const TFEX_CATEGORY_STATUS_OPEN 	= 1;
	const TFEX_CATEGORY_STATUS_CLOSE 	= 2;
	const TFEX_CATEGORY_STATUS_DELETE 	= 3;

	const TFEX_FAQ_CATEGORY_STATUS_OPEN 	= 1;
	const TFEX_FAQ_CATEGORY_STATUS_CLOSE 	= 2;
	const TFEX_FAQ_CATEGORY_STATUS_DELETE 	= 3;

	const TFEX_NEWS_STATUS_DRAFT		= 1;
	const TFEX_NEWS_STATUS_PUBLISHED	= 2;
	const TFEX_NEWS_STATUS_DELETE		= 3;

	const TFEX_FAQ_STATUS_OPEN			= 1;
	const TFEX_FAQ_STATUS_CLOSE			= 2;
	const TFEX_FAQ_STATUS_DELETE		= 3;

	const TFEX_RBAC_NODE_STATUS_OPEN			= 1;
	const TFEX_RBAC_NODE_STATUS_CLOSE			= 2;
	const TFEX_RBAC_NODE_STATUS_DELETE			= 3;
	const TFEX_RBAC_NODE_TYPE_SHOW			= 1;
	const TFEX_RBAC_NODE_TYPE_HIDE			= 2;
	const TFEX_RBAC_NODE_TYPE_PACKAGE			= 3;

	const TFEX_RBAC_ROLE_STATUS_OPEN			= 1;
	const TFEX_RBAC_ROLE_STATUS_CLOSE			= 2;
	const TFEX_RBAC_ROLE_STATUS_DELETE			= 3;

	const TFEX_USERS_STATUS_OPEN			= 1;
	const TFEX_USERS_STATUS_CLOSE			= 2;
	const TFEX_USERS_STATUS_DELETE			= 3;

	const TFEX_USERS_DEFAULT_PASSWORD			= 1;
	const TFEX_USERS_MODIFIED_PASSWORD			= 2;

	// EC, Exception Code
	const EC_SYSTEM_ERROR 				= 10000;
	const EC_ACCESS_DENIED 				= 10001;
	const EC_NO_NEWS_MATCHED 			= 10010;
	const EC_NO_VALIDATE_NEWS_IDS		= 10011;
	const EC_NO_CATEGORY_MATCHED 		= 10020;
	const EC_NO_VALIDATE_CATEGORY_IDS	= 10021;
	const EC_NO_FAQ_CATEGORY_MATCHED 	= 10030;
	const EC_NO_VALIDATE_FAQ_CATEGORY_IDS = 10031;
	const EC_NO_FAQ_MATCHED 			= 10040;
	const EC_NO_VALIDATE_FAQ_IDS 		= 10041;

	const EC_NO_QR_MATCHED 		= 10050;
	const EC_QR_EXPIRED 		= 10051;
	const EC_QR_NO_LOGINED 		= 10052;

	const EC_RBAC_NODE_EXISTS = 10060;
	const EC_RBAC_NODE_CAN_NOT_CLOSED = 10061;
	const EC_RBAC_NODE_NOT_EXISTS = 10062;

	const EC_RBAC_ROLE_EXISTS = 10070;
	const EC_NO_VALIDATE_RBAC_ROLE_IDS = 10071;
	const EC_RBAC_ROLE_NOT_EXISTS = 10072;
	const EC_RBAC_ROLE_ACCESS_EMPTY = 10073;

	const EC_RBAC_USER_EXISTS = 10080;
	const EC_RBAC_USER_NOT_EXIST = 10081;
	const EC_RBAC_USER_CAN_NOT_MODIFY_PASSWORD = 10082;
}